Action()
{
	int status=1;
	int myfile=0;

	lr_start_transaction("NRGL_01_Upload");


//web_add_auto_header("SOAPAction","");
//Correlation comment - Do not change!Original value='' Name ='CorrelationParameter_1'
	web_reg_save_param_ex(
		"ParamName=FILE_ID",
		"LB=FILE_ID&gt;",
		"RB=&lt;/FILE_ID",
		SEARCH_FILTERS,
		"Scope=body",
		"RequestUrl=*/ESB_BASE_CMS_FILE_UPLOAD_001*",
		LAST);
//Correlation comment - Do not change!Original value='' Name ='CorrelationParameter_2'

//FILE_ID&gt;7b6c140b4cbc405cb7d8bdc0c7c3e047&lt;/FILE_ID&gt;&lt;TOKEN&gt;876A7AB0F828160D3F72DD783481ECE2&lt;/TOKEN&gt;&
	web_reg_save_param_ex(
		"ParamName=TOKEN",
		"LB=TOKEN&gt;",
		"RB=&lt;/TOKEN",
		SEARCH_FILTERS,
		"Scope=body",
		"RequestUrl=*/ESB_BASE_CMS_FILE_UPLOAD_001*",
		LAST);

	web_reg_save_param_ex(
		"ParamName=responseXml",
		"LB=encoding/\">",
		"RB=</executeReturn",
		SEARCH_FILTERS,
		"Scope=body",
		"RequestUrl=*/ESB_BASE_CMS_FILE_UPLOAD_001*",
		LAST);

	web_reg_find("Text=RETURN_RESULT&gt;0&lt;/RETURN_RESULT",
		"Search=Body",
		LAST);

	status=web_custom_request("ESB_BASE_CMS_FILE_UPLOAD_001",
		"URL=http://{ESB_host}/services/ESB_BASE_CMS_FILE_UPLOAD_001?wsdl",
		"Method=POST",
		"Resource=0",
		"Referer=",
		"Snapshot=t2.inf",
		"Mode=HTML",
		"Body="
"<soapenv:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:web=\"http://webservice.cms.asiainfo.com\">"
"   <soapenv:Header/>"
"   <soapenv:Body>"
"      <web:execute soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">"
"         <inputXml xsi:type=\"soapenc:string\" xs:type=\"type:string\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xs=\"http://www.w3.org/2000/XMLSchema-instance\"><![CDATA[<?xml version='1.0' encoding='UTF-8'?>"
"<REQ_PARAM>"
"	<PUB_INFO>"
"		<SYS_OP_ID>10010852</SYS_OP_ID>"
"		<SYS_PASSWORD>7c6a180b36896a0a8c02787eeafb0e4c</SYS_PASSWORD>"
"		<CHANNEL_SYSTEM>1000</CHANNEL_SYSTEM>"
"		<OP_ID>10189988</OP_ID>"
"		<OP_CODE>guojianmin</OP_CODE>"
"		<OP_ORG_ID>10013691</OP_ORG_ID>"
"		<OP_REGION_CODE>5725</OP_REGION_CODE>"
"		<OP_COUNTY_CODE>572005</OP_COUNTY_CODE>"
"		<OP_DISTRICT_CODE>57100502</OP_DISTRICT_CODE>"
"		<REQ_SERIAL_NO>20140821162921</REQ_SERIAL_NO>"
"	</PUB_INFO>"
"	<BUSI_INFO>"
"		<CATALOG_ID>10088882</CATALOG_ID>"
"		<BUSI_TYPE>opportunity_input</BUSI_TYPE>"
"		<BUSI_VALUE>155001789</BUSI_VALUE>"
"		<PARAM_LIST>"
"			<PARAM_INFO>				"
"				<PARAM_CODE>group_code</PARAM_CODE>"
"				<PARAM_NAME>jituandaima_jiuszyldbuyaobugao</PARAM_NAME>			"
"				<PARAM_VALUE>76121001</PARAM_VALUE>"
"			</PARAM_INFO>"
"			<PARAM_INFO>				"
"			<PARAM_CODE>group_name</PARAM_CODE>"
"			<PARAM_NAME>jituandaima_jdjshdjkadhfkdhfh</PARAM_NAME>"
"			<PARAM_VALUE>zhejiangzaismshshgongsjiuszydjjdkjduehdksn</PARAM_VALUE>"
"			</PARAM_INFO>"
"		</PARAM_LIST>"
"	</BUSI_INFO>"
"</REQ_PARAM>]]></inputXml>"
"      </web:execute>"
"   </soapenv:Body>"
"</soapenv:Envelope>"
		,LAST);

	web_reg_find("Text=true",
		"Search=Body",
		LAST);
	web_submit_data("ESB_BASE_CMS_FILE_UPLOAD_002",
		"Action=http://{App_host}/upload/?fileId={FILE_ID}&token={TOKEN}",
		"Method=POST",
		"EncType=multipart/form-data",
		"RecContentType=text/htmlResource=0",
		"Referer=",
		"Snapshot=t3.inf",
		"Mode=HTTP",
		ITEMDATA,
		"Name=responseXml", "Value={responseXml}", ENDITEM,
		"Name=uploadFile", "Value=C:\\UPLOADfile\\{file_name}", "File=yes", ENDITEM,
		LAST);

	lr_end_transaction("NRGL_01_Upload", LR_AUTO);

	myfile = fopen("c:\\File_id.txt","a");
	fprintf(myfile,"%s\n",lr_eval_string("{FILE_ID}"));
	fclose(myfile);

return 0;

}
